<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">开发管理</h1>
</div>

<div class="wrapper-md">
  <div class="panel panel-default">
    <div class="panel-heading">
      版本管理
    </div>
    <toaster-container toaster-options="{'position-class': 'toast-center', 'close-button':true}"></toaster-container>
    <div class="panel-body b-b b-light">
        <p>
            <a class="btn btn-info btn-addon" ng-if="permitAdd" ng-click="addVersion()">添加</a>
            <a class="btn btn-default btn-addon active" ng-if="!permitAdd">添加</a>
        </p>            
    </div>
    <div class="table-responsive">
      <table id="tab" class="table table-striped m-b-none">
        <thead>
          <tr>
            <th style="min-width:80px">版本号</th>
            <th style="min-width:100px">更新内容</th>
            <th style="min-width:100px">更新方式</th>
            <th style="min-width:60px">状态</th>
            <th style="min-width:100px">发布时间</th>
            <th style="min-width:100px">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-if="versionList==''"><td colspan="9">当前无任何数据</td></tr>
          <tr ng-repeat="obj in versionList">
            <td ng-bind="obj.Code"></td>
            <td ng-bind="obj.Content"></td>
            <td ng-bind="obj.IsDialog?'强制更新':'静默更新'"></td>
            <td ng-bind="obj.IsPublish?'已发布':'未发布'"></td>
            <td ng-bind="obj.FinshTime|date:'yyyy-MM-dd HH:mm:ss'"></td>
            <td>
              <button class="btn m-b-xs btn-sm btn-info" style="margin-right:10px;" ng-click="editVersion(obj.Id)">编辑</button>
              <button class="btn m-b-xs btn-sm btn-info" ng-if="!obj.IsPublish" style="margin-right:10px;" ng-click="ReleaseVersion(obj.Id)">发布</button> 
              <button class="btn m-b-xs btn-sm btn-info" style="margin-right:10px;" ng-click="deleteVersion(obj.Id)">删除</button>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
  <div class="btn-group pull-right">
    <button type="button" class="btn btn-default" ng-click="prev()"><font><font>上一页</font></font></button>
    <button type="button" class="btn btn-default btnNum">{{versionData.Index}}</button>
    <button type="button" class="btn btn-default" ng-click="next()"><font><font>下一页</font></font></button>
    <span class="btn btn-default">共<span ng-bind="QueryListTotal+'条数据'"></span></span>
  </div>